//
//  ViewController.m
//  哈哈
//
//  Created by lianjie on 2018/7/3.
//  Copyright © 2018年 lianjie. All rights reserved.
//

#import "ViewController.h"

@interface ViewController ()

@end

@implementation ViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    NSLog(@"我是master");
    

    NSLog(@"我是222");

    NSLog(@"我是111");
    

    NSLog(@"hehehehe");

    
    NSLog(@"hahahaha");
    
    [self testThirdWay];
    [self testSecondWay];
    
    
}


-(void)viewWillAppear:(BOOL)animated
{
    [super viewWillAppear:animated];
    
    [self allWay];
}

- (void) allWay
{
    
    [self testWayF];
    [self testFourWay];
    
    [self testSecondWay];
    [self testThirdWay];
    
    NSLog(@"哈哈哈");
    

}


-(void) testWayF
{
    
    NSLog(@"卧槽");
    
    [self testFourWay];
    [self testThirdWay];

    [self testThirdWay];

    [self testSecondWay];

}

- (void) testSecondWay
{
    [self testThirdWay];
    
    NSLog(@"第二次测试");
}

- (void) testThirdWay
{
    
    NSLog(@"第三次测试");
    [self testSecondWay];
    
}

- (void) testFourWay
{
    
    NSLog(@"第四次测试");
    [self testWayF];
    
}


- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}


@end
